﻿<Window x:Class="TicTacToe.UI.GameWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:components="clr-namespace:TicTacToe.UI.Components"
        Title="3DTicTacToe" x:ClassModifier="internal" Icon="..\3dtictactoe.png"
        Height="676" Width="806" MinHeight="676" MinWidth="806">
    <Grid Margin="3">

        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition Width="154" />
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="22" />
            <RowDefinition />
            <RowDefinition Height="50" />
        </Grid.RowDefinitions>

        <Border Margin="3,0,6,0" CornerRadius="6">
            <Border.Background>
                <SolidColorBrush Color="FloralWhite" Opacity="0.4" />
            </Border.Background>
            
            <Menu Background="Transparent">
                <MenuItem Header="_Game" Name="gameMenu">
                    <MenuItem Header="Save Game" Name="saveGameMenuItem" Click="saveGameMenuItem_Click" />
                    <Separator />
                    <MenuItem Header="_Restart Game" Name="restartGameMenuItem" Click="RestartGameItemHandler" />
                    <MenuItem Header="Start _New Game" Name="startNewGameMenuItem" Click="StartNewGameItemHandler" />
                    <MenuItem Header="Return to _Start Screen" Name="returnToStartMenuItem" Click="ReturnMenuItemHandler" />
                    <Separator />
                    <MenuItem Header="Exit Program" Click="ExitProgramItemHandler" />
                </MenuItem>
                <MenuItem Header="3_D View">
                    <MenuItem Header="Reset _Rotation" Click="ResetRotation" />
                    <MenuItem Header="Reset _Zoom" Click="ResetZoom" />
                </MenuItem>
                <MenuItem Header="_Windows">
                    <MenuItem Header="Toggle _Chat" Name="toggleChatMenuItem" IsEnabled="False" Click="ToggleChatWindow" />
                    <MenuItem Header="Toggle _Turn List" Click="ToggleTurnWindow" />
                </MenuItem>
            </Menu>
        </Border>

        <components:PlayerPanel x:Name="playerPanel" Grid.Row="2" Margin="0,3,3,0" />
        <components:GameView2D x:Name="gameView2D" Grid.Column="1" Grid.RowSpan="3" VerticalContentAlignment="Center" />
        <components:GameView3D x:Name="gameView3D" Grid.Row="1" Margin="0,3,3,0" />
    </Grid>
</Window>
